package com.sdonkey.score.model;

import java.io.Serializable;

/**
 * 站内信
 *
 * @author ZhaoShihao
 * @version 1.0
 */
public class Msg implements Serializable {
  
	private static final long serialVersionUID = -8571125058105490527L;
	private Integer id;//站内信id
    private String sender_id;//发件人ID
    private String sender_name;//发件人名称
    private String sender_type;//发件人类型
    private String addressee_id;//收件人ID
    private String addressee_name;//收件人名称
    private String addressee_type;//收件人类型
    private String mail_prefix;//站内信标题前缀
    private String mail_title;//站内信标题
    private String mail_content;//站内信内容
    private String mail_type;//站内信类型
    private String create_time;//发送时间
    private String update_time;//状态更新时间
    private Integer send_star_flag;//发件箱星标状态
    private Integer income_star_flag;//收件箱星标状态
    private String send_state;//发件箱状态
    private String inbox_state;//收件箱状态

    public Msg() {
    }

    public Msg(String sender_id, String sender_name, String sender_type, String addressee_id, String addressee_name, String addressee_type, String mail_prefix, String mail_title, String mail_content) {
        this.sender_id = sender_id;
        this.sender_name = sender_name;
        this.sender_type = sender_type;
        this.addressee_id = addressee_id;
        this.addressee_name = addressee_name;
        this.addressee_type = addressee_type;
        this.mail_prefix = mail_prefix;
        this.mail_title = mail_title;
        this.mail_content = mail_content;
    }

    /**
     * 最低要求配置
     *
     * @param sender_id    发送人ID
     * @param sender_name  发送人名称
     * @param mail_title   站内信标题
     * @param mail_content 站内信内容
     */
    public Msg(String sender_id, String sender_name, String mail_content, String mail_title) {
        this.sender_id = sender_id;
        this.sender_name = sender_name;
        this.mail_content = mail_content;
        this.mail_title = mail_title;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSender_id() {
        return sender_id;
    }

    public void setSender_id(String sender_id) {
        this.sender_id = sender_id;
    }

    public String getSender_name() {
        return sender_name;
    }

    public void setSender_name(String sender_name) {
        this.sender_name = sender_name;
    }

    public String getSender_type() {
        return sender_type;
    }

    public void setSender_type(String sender_type) {
        this.sender_type = sender_type;
    }

    public String getAddressee_id() {
        return addressee_id;
    }

    public void setAddressee_id(String addressee_id) {
        this.addressee_id = addressee_id;
    }

    public String getAddressee_name() {
        return addressee_name;
    }

    public void setAddressee_name(String addressee_name) {
        this.addressee_name = addressee_name;
    }

    public String getAddressee_type() {
        return addressee_type;
    }

    public void setAddressee_type(String addressee_type) {
        this.addressee_type = addressee_type;
    }

    public String getMail_prefix() {
        return mail_prefix;
    }

    public void setMail_prefix(String mail_prefix) {
        this.mail_prefix = mail_prefix;
    }

    public String getMail_title() {
        return mail_title;
    }

    public void setMail_title(String mail_title) {
        this.mail_title = mail_title;
    }

    public String getMail_content() {
        return mail_content;
    }

    public void setMail_content(String mail_content) {
        this.mail_content = mail_content;
    }

    public String getMail_type() {
        return mail_type;
    }

    public void setMail_type(String mail_type) {
        this.mail_type = mail_type;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public Integer getSend_star_flag() {
        return send_star_flag;
    }

    public void setSend_star_flag(Integer send_star_flag) {
        this.send_star_flag = send_star_flag;
    }

    public Integer getIncome_star_flag() {
        return income_star_flag;
    }

    public void setIncome_star_flag(Integer income_star_flag) {
        this.income_star_flag = income_star_flag;
    }

    public String getSend_state() {
        switch (send_state) {
            case "-1":
                return "已删除";
            case "0":
                return "发送失败";
            case "1":
                return "已发送";
            default:
                return send_state;
        }
    }

    public void setSend_state(String send_state) {
        this.send_state = send_state;
    }

    public String getInbox_state() {
        switch (inbox_state) {
            case "-1":
                return "已删除";
            case "0":
                return "未读";
            case "1":
                return "已读";
            case "2":
                return "已回复";
            default:
                return inbox_state;
        }
    }

    public void setInbox_state(String inbox_state) {
        this.inbox_state = inbox_state;
    }
}
